//
//  LDSViewModel.h
//  LDSMVVMBase
//
//  Created by kai_leedarson on 2017/9/30.
//  Copyright © 2017年 maple_leedarson. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "LDSBaseView.h"

@interface LDSViewModel : NSObject
@property (nonatomic, assign) Class viewClass;
@property (nonatomic, assign) CGRect frame;
@property (nonatomic, strong) id model;
@property (nonatomic, assign) NSInteger tag;
@property (nonatomic, assign) BOOL xib;
@property (nonatomic, readonly, getter=view) LDSBaseView *view;

+ (LDSViewModel *)modelViewWithClass:(Class)vClass frame:(CGRect)frame model:(id)model;

+ (LDSViewModel *)modelViewWithClass:(Class)vClass model:(id)model;
@end
